package mpicbg.imagefeatures;

import java.io.Serializable;

public class fratios implements Comparable< fratios >, Serializable
 {
	public float ratio;
	public Float[] feats;
	public String s;

	public fratios() {}

    public fratios(Float[] floats, float r)
    {
       feats = floats;
       ratio = r;
       
    }
    
    public int compareTo( fratios f )
	{
		return feats[2].floatValue() < f.feats[2].floatValue() ? 1 : feats[2].floatValue() == f.feats[2].floatValue() ? 0 : -1;
		//return feats < f.feats ? 1 : feats == f.feats ? 0 : -1; 
	}
	

    public Float[] getfeats()
    {
       return feats;
    }

    public float getratio()
    {
       return ratio;
    }

   
 }